/**
 * Created by macpro on 2017/1/5.
 */

function GotoDetail(obj) {
    var itemName = obj.className;

    if (itemName == "item1"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.31.fzErCW&id=537556228097&skuId=3242652613642&areaId=420100&user_id=445529553&cat_id=50025135&is_b=1&rn=23c58e76319f15a4cd33a4797510b6d3";

    }else if (itemName == "item2"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.259.fzErCW&id=538443400249&skuId=3215883590896&areaId=420100&user_id=479206460&cat_id=50025135&is_b=1&rn=23c58e76319f15a4cd33a4797510b6d3"

    }else if (itemName == "item3"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.264.fzErCW&id=540232862378&skuId=3202996887405&areaId=420100&user_id=675409529&cat_id=50025135&is_b=1&rn=23c58e76319f15a4cd33a4797510b6d3";

    }else if (itemName == "item4"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.289.fzErCW&id=542603668849&skuId=3425996110542&areaId=420100&user_id=2990108584&cat_id=50025135&is_b=1&rn=23c58e76319f15a4cd33a4797510b6d3";

    }else if (itemName == "item5"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.274.fzErCW&id=542486018010&skuId=3260697849094&areaId=420100&user_id=2990559247&cat_id=50025135&is_b=1&rn=23c58e76319f15a4cd33a4797510b6d3";

    }else if (itemName == "item6"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.306.fzErCW&id=537921518058&skuId=3213113692797&areaId=420100&user_id=608768105&cat_id=50025135&is_b=1&rn=23c58e76319f15a4cd33a4797510b6d3";

    }else if (itemName == "item7"){
        window.location.href = "https://detail.tmall.com/item.htm?id=542745026854&ali_refid=a3_419108_1006:1105404072:N:棉袄%20女%20中长款%20休闲:0af4aa787f537f53fd4f00e8d60496a6&ali_trackid=1_0af4aa787f537f53fd4f00e8d60496a6&spm=a220m.1000858.0.0.fzErCW";

    }else if (itemName == "item8"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.11.mhATAE&id=542347881735&skuId=3259375348587&areaId=420100&user_id=2990559247&cat_id=50025135&is_b=1&rn=a899a11d278abc4a8007d08a17120ed2";

    }else if (itemName == "item9"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.55.mhATAE&id=541581832154&skuId=3252047284026&areaId=420100&user_id=2990108584&cat_id=50025135&is_b=1&rn=a899a11d278abc4a8007d08a17120ed2";

    }else if (itemName == "item10"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.81.mhATAE&id=541182903290&skuId=3411589183888&areaId=420100&user_id=2273237353&cat_id=50025135&is_b=1&rn=a899a11d278abc4a8007d08a17120ed2";

    }else if (itemName == "item11"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.215.mhATAE&id=542611625707&skuId=3262023589861&areaId=420100&user_id=2152727494&cat_id=50025135&is_b=1&rn=a899a11d278abc4a8007d08a17120ed2";

    }else if (itemName == "item12"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.251.mhATAE&id=543595511080&skuId=3435568454147&areaId=420100&user_id=3012544195&cat_id=50025135&is_b=1&rn=a899a11d278abc4a8007d08a17120ed2";

    }else if (itemName == "item13"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.87.ohi4In&id=540405442868&skuId=3204416078334&areaId=420100&user_id=2111286801&cat_id=50025135&is_b=1&rn=f70388ba4bafcc281b4a35f71b0394f5";

    }else if (itemName == "item14"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.146.ohi4In&id=540410309680&skuId=3240647560689&areaId=420100&user_id=2972279441&cat_id=50025135&is_b=1&rn=f70388ba4bafcc281b4a35f71b0394f5";

    }else if (itemName == "item15"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.308.ohi4In&id=542871167188&skuId=3428428499693&areaId=420100&user_id=2990108584&cat_id=50025135&is_b=1&rn=f70388ba4bafcc281b4a35f71b0394f5";

    }else if (itemName == "item16"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.260.RNOm0x&id=541927091546&skuId=3255237636987&areaId=420100&user_id=2111286801&cat_id=50025135&is_b=1&rn=53dc4270012c7e39ba6f7f8aa70dcc5a";

    }else if (itemName == "item17"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220o.1000855.1998025129.1.YYYTGZ&abtest=_AB-LR32-PR32&pvid=963e0d6e-ac2e-4bc2-a56f-dc9375110317&pos=1&abbucket=_AB-M32_B10&acm=03054.1003.1.1285741&id=540917385218&scm=1007.12559.61743.100200300000000&sku_properties=20509:28315";

    }else if (itemName == "item18"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.144.flyo55&id=540630673049&skuId=3242744337690&areaId=420100&user_id=2407067373&cat_id=50025135&is_b=1&rn=67e8054ce32870e49015570a1b75a326";

    }else if (itemName == "item20"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.174.flyo55&id=543503290288&skuId=3434900087710&areaId=420100&user_id=2111286801&cat_id=50025135&is_b=1&rn=67e8054ce32870e49015570a1b75a326";

    }else if (itemName == "item21"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.169.flyo55&id=543760127388&skuId=3273176272909&areaId=420100&user_id=1728314847&cat_id=50025135&is_b=1&rn=67e8054ce32870e49015570a1b75a326";

    }else if (itemName == "item22"){
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.11.qdzIpp&id=539851745609&skuId=3199812934143&areaId=420100&user_id=1810884464&cat_id=50025135&is_b=1&rn=0cd42c373d643991311bf5d5a4f57734";

    }else {
        window.location.href = "https://detail.tmall.com/item.htm?spm=a220o.1000855.1998025129.1.QrFLFk&abtest=_AB-LR32-PR32&pvid=ee756e35-a1fe-4cba-b82c-b62ac87d38fd&pos=1&abbucket=_AB-M32_B10&acm=03054.1003.1.1285741&id=540515006087&scm=1007.12559.61743.100200300000000";
    }

    console.log("图片名字 " + itemName);
}

// window.onload = function () {
//     var w = window.innerWidth;
//     var h = window.innerHeight;
//     console.log("加载完毕 " + w , h );
// }